package com.itheima.utile;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class StrLocalDataTime {
    public static LocalDateTime strTime(String date) {
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
       return LocalDateTime.parse(date,dateTimeFormatter);
    }
}
